package com.ruan.service;

import com.ruan.dao.CommentsTypeMapper;
import com.ruan.entity.CommentsType;
import com.ruan.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:CommentsTypeService
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/4 11:21
 **/
@Service
public class CommentsTypeService {

    @Autowired
    private CommentsTypeMapper commentsTypeMapper;

    public Result getCommentsTypeList() {
        List<CommentsType> commentsTypeList = commentsTypeMapper.getCommentsTypeList();
        return new Result(200,commentsTypeList);
    }
}
